home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
editor
/
wf314.zip
/
WF311DOC.ZIP
/
DOCS
/
WF.013
< prev
next >
Wrap
Text File
|
1992-01-31
|
17KB
|
376 lines
.f3 - # - Chapter 13 - Macros
.rm70
.tc
.tc1
.tc 13. MACROS ............................................#
CHAPTER 13 MACROS
.imMacros
.ix Definition
.irKeyboard;Keyboard Macros see Macros
A macro is essentially a pre recorded sequence of key strokes that you
wish to execute. Each macro may contain up to 255 characters, and is
stored in a macro file. Each macro file has room for 36 macros. Several
macro files are provided with the Word Fugue package. They all end
with the extension .MAC The standard one WF.MAC will always be loaded
on startup.
The files provided are:-
.ix Standard macro files
WF.MAC standard macros for word processing
SINGLE.MAC definitions for box drawing characters, concentrating on
single lines.
DOUBLE.MAC definitions for box drawing characters, concentrating on
double lines.
GREEK.MAC allows access to the Greek character set (as supported by
the IBM PC)
EUROPE.MAC allows access to the European characters supported by the
IBM PC.
PASCAL.MAC assorted macros for pascal programmers.
Each macro has an identifying character that is used to activate it or
replay it. These identifiers are the numbers 0 to 9, and the letters A
to Z. Lowercase and uppercase letters are treated the same. You can
only load one macro file at a time, but you can use macros to load
other macro files and execute macros from there. In addition you can
load a different macro file to execute a single command, and the
return to your original macro file.
You can have a set of macro files in each directory you use if
necessary, since Word Fugue looks in the current directory when
loading a macro file. When first started, Word Fugue will look for the
macro file WF.MAC in the default directory and if it does not find it
there, will look in the defined home directory.
.tc Recording A Macro ..................................#
Recording A Macro
.ix Recording
Before you can use macros, you need to set them up. The simplest
method is to record a sequence of key strokes. You achieve this by
pressing Alt R at the start of the sequence, and Alt R again when you
have finished. You will be prompted with a list of macros in the macro
file, and you will be asked to choose one to use as the repository of
the characters you have just recorded. Use the cursor movement keys to
highlight the macro you wish to store the keystrokes in, and press
Return. You will then be prompted for a name for the macro, which is
displayed whenever a list of available macros is displayed. Enter
something meaningful, and if possible, prefix it with the letter that
will be used to activate it.
.CP6
You need to be sure that the sequence of keystrokes you enter is
correct, since they will be replayed exactly as you entered them.
However, if necessary, you can edit the stored macro command to
correct it.
.tc Editing A Macro ....................................#
Editing A Macro
.ix Editing
Macros recorded within Word Fugue can be edited on a character by
character basis using the built-in macro editor. Enter the command Alt
E to edit a macro from the current set of loaded macros. A list of the
current macros will be displayed, and you select the one you want by
use of the cursor keys to highlight the appropriate one, and pressing
Return to select it. See Fig 13.3 for the macro selection window.
First, a prompt box will ask for a new name for the macro, which you
can accept as is, or change. You should always include the activation
letter in the name, for ease when replaying. The macros numbered 1 to
9 are activated by the numbers 1 to 9, while those numbered 10 to 35
are activated by pressing the letters A to Z in that order.
╔═══════════════════ Macro Name ════════════════════╗
║1 - delete word left ║
╚═══════════════════════════════════════════════════╝
Fig 13.1 - Edit Macro Name
.tc1 Fig 13.1 - Edit Macro Name ............................#
The macro will appear in another window. Most characters you type will
be inserted literally into the macro, with the following exceptions.
It can be edited using the cursor arrow keys, and the <Del> or
<Backspace> keys. <CtrlBksp> will delete the macro. <Enter> will end
the session in the macro editor. <Esc> will undo any changes made to
the macro. Pressing Alt plus the number keys on the numeric keypad to
code the decimal sequence of a character will enter that character.
This makes it easy to enter those high order characters that do not
appear on the keyboard. Consult your DOS manual for more information
on entering alternate key strokes on your computer.
In case you need to enter any of these special keys as part of the
macro, press the <ScrollLock> key to enter Literal mode. In this mode,
all keystrokes will be inserted into the macro without any
interpretation. In order to terminate the edit when in this mode, you
will need to press <ScrollLock> again in order to enter the <Enter> or
<ESC> characters.
.CP14
╔═════════════════════════ delete word left ══════════════════════════╗
║ <CtrlLft><CtrlT> ║
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
╚═════════════════════════════════════════════════════════ Command ═══╝
Fig 13.2 - Edit Macro Window
.tc1 Fig 13.2 - Edit Macro Window ..........................#
The bottom right hand corner of the Edit Macro Window displays either
Command or Literal to indicate in which mode the window is currently.
As you can see from Fig 13.2, the keystrokes are all given names when
typed into the macro.
.tc Saving A Macro File ................................#
Saving A Macro File
.ix Saving macro file
If the macro you have recorded are to be of any use in later sessions
of Word Fugue, you will need to save the file containing them. The
command sequence Alt W will save the macro file. You will be prompted
to enter a file name, with the current file name being displayed. You
can either edit it, or press Return to accept it.
If the filename already exists, you will be prompted with Overwrite
File? (Y/N) . If you enter Y the file will be overwritten. If you
press N or ESC, the file will not be overwritten. In this situation
you will need to enter the command again and type in a different file
name.
.tc Playing Back A Macro ...............................#
Playing Back A Macro
.ix Playing back
Having set up a macro, you can now play it back. There are several
commands available to do this.
.tc Activate Macro 1 to 9 ...........................#
Activate Macro 1 to 9
These macros can be activated by pressing Alt 1 to Alt 9 using the
numbers on the main keyboard above the letters. (Not the numeric key
pad - they will not work!!). You should place your most often used
macros in slots 1 to 9, since they are the easiest to activate.
.tc Activate Macro ..................................#
Activate Macro
.ix Activation
This command waits for the next keystroke, and if it is a macro
identifier, activates that macro. Press Alt M or ESC (Wordstar
compatible command). The top line will display choose macro to
apply if you pause before entering the macro identifier. If you
enter 0 to 9 or A t